<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<!--[if IE 8]>
<html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]>
<html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->

<head>
    <include file="Public:meta"/>
</head>

<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
<include file="Public:header"/>
<!-- BEGIN CONTAINER -->
<div class="page-container">
    <include file="Public:sidebar"/>
    <!-- BEGIN PAGE -->
    <div class="page-content">
        <!-- BEGIN PAGE CONTAINER-->
        <div class="container-fluid">
            <!-- BEGIN PAGE HEADER-->
            <div class="row-fluid">
                 <!-- begin BCN -->
                <div class="row-fluid">
                    <div class="span12"><ul class="breadcrumb"><li><i class="icon-home"></i><a onfocus="blurLink(this);" href="{:U('Index/index')}">首页</a>&nbsp;<span class="icon-angle-right"></span>&nbsp;</li><li><a onfocus="blurLink(this);" href="{:U(CONTROLLER_NAME . '/index', 'kept=1')}">{$ParentPageName|default="未命名"}</a>&nbsp;<span class="icon-angle-right"></span>&nbsp;</li><li>{$PageName|default="未命名"}</li></ul></div>
                </div>
                <!-- end BCN -->
            </div>
            <!-- END PAGE HEADER-->
            <!-- BEGIN PAGE CONTENT-->
            <div class="row-fluid white">
                <div class="span12">
                    <!-- begin 高级搜索 -->
                    <form id="filter_form" class="form-horizontal form-common adv-search-box" method="get" action="">
                        <input name="m" type="hidden" value="{:(MODULE_NAME)}">
                        <input name="c" type="hidden" value="{:(CONTROLLER_NAME)}">
                        <input name="a" type="hidden" value="index">
                        <input name="filter" type="hidden" value="1">
                        <input name="type" type="hidden" value="{$Think.get.type}">
                        <div class="box">
                            <div class="portlet-title">
                                <div class="caption"><i class="icon-search"></i>高级搜索</div>
                                <div class="tools"><a href="javascript:;" class="collapse"></a></div>
                            </div>
                            <div class="portlet-body">
                                <div class="row-fluid">
                                    <div class="span6">
                                        <div class="control-group control-common">
                                            <label class="control-label"><span>秒杀时间段</span></label>
                                            <div class="controls">
                                                <select class="m-wrap span6" name="time_id">
                                                    <option value="">请选择秒杀时间段</option>
                                                    <volist name="times" id="vo">
                                                        <option value="{$vo[0]}" <if condition="$Think.get.time_id eq $vo[0]">selected="selected"</if>>{$vo[1]}</option>
                                                    </volist>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="span6">
                                        <div class="control-group control-common">
                                            <label class="control-label"><span>神秘团</span></label>
                                            <div class="controls">
                                                <select class="select2 span6" name="activity_id">
                                                    <option value="">请选择神秘团</option>
                                                    {$html_activity}
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="search-actions">
                                    <button class="btn blue" id="filter" type="submit">筛选<i class="icon-filter"></i></button>
                                    <a href="{:U(CONTROLLER_NAME.'/index')}" class="btn">重置</a>
                                </div>
                            </div>
                        </div>
                    </form>
                    <!-- end 高级搜索 -->

                    <!-- begin 操作与分页 -->
                    <div class="row-fluid ">
                        <div class="dataTables_length pull-left">
                            <form id="limit_form" name="limit_form" method="post" action="">
                                <label for="limit_num">
                                    <select class="limit_num" id="limit_num" name="limit_num">
                                    <volist name="page_limit_num" id="vo">
                                        <option <eq name="_SESSION['page_limit_num']" value="$vo"> selected="selected" </eq> value="{$vo}">{$vo}</option>
                                    </volist>
                                    </select>
                                    个记录/每个页面
                                </label>
                            </form>
                        </div>
                        <div class="btn-item pull-left">
                            <if condition="checkAccess(CONTROLLER_NAME,'save')">
                                <a class="btn blue save" href="{:U(CONTROLLER_NAME.'/save')}">添加<i class="icon-plus"></i></a>
                            </if>
                        </div>
                        <div class="dataTables_filter pull-right">
                            <form id="search_form" class="search-form" name="search_form" method="get" action="">
                                <input name="m" type="hidden" value="{:(MODULE_NAME)}">
                                <input name="c" type="hidden" value="{:(CONTROLLER_NAME)}">
                                <input name="a" type="hidden" value="{:(ACTION_NAME)}">
                                <input class="m-wrap search-input" type="text" placeholder="搜索..." name="keyword" value="{$Think.get.keyword}"/>
                                <button class="btn blue" id="search" type="submit">搜索</button><if condition="$Think.get.keyword neq ''"><a href="{:U(CONTROLLER_NAME.'/index')}" class="btn">返回<i class="icon-share-alt"></i></a></if>
                            </form>
                        </div>
                    </div>
                    <!-- end 操作与分页 -->
                    
                    <div class="portlet-body">
                        <table class="table table-striped table-hover table-bordered">
                            <thead>
                            <tr>
                                <th><input type="checkbox" class="check_all" /></th>
                                <th>秒杀时间段</th>
                                <th>神秘团id</th>
                                <th>商品名称</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <notempty name="list">
                                <tbody>
                                    <volist name="list" id="vo" key="k">
                                    <tr>
                                        <td><input type="checkbox" class="check_list" value="{$vo.id}" /></td>
                                        <td>{$vo.time_id|getTitle=###,seckill_time,time}</td>
                                        <td>
                                            {$vo.activity_id}
                                        </td>
                                        <td>
                                            {$vo.activity_id|getTitle=###,activity,goods_id|getTitle=###,goods}
                                        </td>
                                        <td class="hidden-phone">
                                             <div>
                                                <if condition="checkAccess(CONTROLLER_NAME, 'edit')">
                                                    <a class="btn yellow-stripe mini" href="{:U(CONTROLLER_NAME.'/edit', array('id'=>$vo['id']))}">编辑</a>
                                                </if>
                                                <if condition="checkAccess(CONTROLLER_NAME, 'del')">
                                                    <a class="btn red-stripe mini del" href="{:U(CONTROLLER_NAME.'/del', array('id'=>$vo['id']))}">删除</a>
                                                </if>
                                            </div>
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </notempty>
                        </table>
                    </div>
                    <div class="pages clearfix">
                        <div class="control-group pull-left">
                            <div class="control-group pull-left">
                                <select class="list_op_type m-wrap">
                                    <option value="del">删除</option>
                                </select>
                                <button class="btn blue list_op">确定</button>
                            </div>
                        </div>
                        <include file="Public:page" />
                    </div>
                </div>
            </div>
            <!-- END PAGE CONTENT-->
        </div>
        <!-- END PAGE CONTAINER-->
    </div>
    <!-- END PAGE -->
</div>
<!-- END CONTAINER -->
<!-- END CONTAINER -->
<include file="Public:footer"/>
<include file="Public:js"/>
</body>
<!-- END BODY -->
</html>